Optimal. Leaf size=28 \[ \frac{b \sec (e+f x)}{f}-\frac{(a-b) \cos (e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0261331, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3664, 14} \[ \frac{b \sec (e+f x)}{f}-\frac{(a-b) \cos (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 14
Rubi steps
\begin{align*} \int \sin (e+f x) \left (a+b \tan ^2(e+f x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a-b+b x^2}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \left (b+\frac{a-b}{x^2}\right ) \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{(a-b) \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0435174, size = 46, normalized size = 1.64 \[ \frac{a \sin (e) \sin (f x)}{f}-\frac{a \cos (e) \cos (f x)}{f}+\frac{b \cos (e+f x)}{f}+\frac{b \sec (e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 52, normalized size = 1.9 \begin{align*}{\frac{1}{f} \left ( -\cos \left ( fx+e \right ) a+b \left ({\frac{ \left ( \sin \left ( fx+e \right ) \right ) ^{4}}{\cos \left ( fx+e \right ) }}+ \left ( 2+ \left ( \sin \left ( fx+e \right ) \right ) ^{2} \right ) \cos \left ( fx+e \right ) \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.950032, size = 42, normalized size = 1.5 \begin{align*} \frac{b{\left (\frac{1}{\cos \left (f x + e\right )} + \cos \left (f x + e\right )\right )} - a \cos \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79394, size = 65, normalized size = 2.32 \begin{align*} -\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} - b}{f \cos \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan ^{2}{\left (e + f x \right )}\right ) \sin{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.42117, size = 55, normalized size = 1.96 \begin{align*} b{\left (\frac{\cos \left (f x + e\right )}{f} + \frac{1}{f \cos \left (f x + e\right )}\right )} - \frac{a \cos \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]